package com.zdb.demo.design.pattern.behavioral.chainofresponsibility.demo1;

public class Client {

    public static void main(String[] args) {
        Handler handler1 = new GeneralManager();
        Handler handler2 = new DepManager();
        Handler handler3 = new ProjectManager();
        handler2.setNextHandler(handler1);
        handler3.setNextHandler(handler2);

        System.out.println("the ret:" + handler3.handleFeeRequest("小李", 500));
    }
}
